package command

class RegisterCommand {

    String password
    String passwordAgain

    static constraints ={
        password(nullable:true)
        passwordAgain(validator:{
            val,obj ->
                if(obj.password !=val)
                    return 'differentPassword'
        })
    }
}
